﻿// -----------------------------------------------------------------------
// <copyright file="ConstantsManagerClinic.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace ManagerClinic.Modules
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public static class ConstantManagerClinic
    {
        public const string sTitleInformation = "Thông báo";
        public const string sTitleWarming = "Cảnh báo";

        public const string sValueMember = "VM";
        public const string sDisplayMember = "Chọn ......";

        #region Mã Phiếu
        public const string maPhieuSA = "SA";
        public const string maPhieuCDHA = "CDHA";
        public const string maPhieuXetNghiem = "XN";
        public const string maPhieuThamDoCN = "TDCN";
        public const string maPhieuPhauThuatThuThuat = "PTTT";
        public const string maPhieuPhauThuatTTTaiCho = "PTTTTC";
        #endregion
        public enum StateInsertOrUpdate : int
        {
            Insert = 1,
            Update = 2
        }

        public enum TrangThaiKhamBenh : int
        {
            TaoMoi = 0,
            ChoKham = 1,
            DaKham = 2,
            HoanTat = 3
        }

        public enum TrangThaiDongTien : int
        {
            ChuaDongTien = 0,
            DaDongTien = 1
        }

        public enum TrangThaiPhieuCanLamSang : int
        {
            TaoMoi = 0,
            KhamBenh = 1,
            ThuPhi = 2,
            CanLamSang = 3,
            TroLaiPhongKham = 4,
            KetThuc = 5
        }

        public enum TrangThaiThucHienDichVuKhamChuaBenh : byte
        {
            ChuaThucHien = 0,
            DaThucHien = 1
        }

        public enum TrangThaiChoDichVuKhamChuaBenh : byte
        {
            ChuaThucHien = 0,
            DangThucHien = 1
        }

        public enum TrangThaiHoSo : int
        {
            TaoMoi = 0,
            KhamBenh = 1,
            ThuPhi = 2,
            CanLamSang = 3,
            TroLaiPhongKham = 4,
            KetThuc = 5
        }

        public static string setCodeManagerClinic(string kyTuDau)
        {
            return kyTuDau + "-" + DateTime.Now.Year.ToString() + "-"
                + ((DateTime.Now.Month < 10) ? "0" + DateTime.Now.Month.ToString() : DateTime.Now.Month.ToString()) + "-"
                + ((DateTime.Now.Day < 10) ? "0" + DateTime.Now.Day.ToString() : DateTime.Now.Day.ToString()) + "-"
                + ((DateTime.Now.Hour < 10) ? "0" + DateTime.Now.Hour.ToString() : DateTime.Now.Hour.ToString()) + "-"
                + ((DateTime.Now.Minute < 10) ? "0" + DateTime.Now.Minute.ToString() : DateTime.Now.Minute.ToString()) + "-"
                + ((DateTime.Now.Millisecond < 10) ? "00" + DateTime.Now.Millisecond.ToString() : (DateTime.Now.Millisecond < 100) ? "0" + DateTime.Now.Millisecond.ToString() : DateTime.Now.Millisecond.ToString());
        }

    }
}
